package com.jdyfy.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("publicitys") //数据库中对应的表名
public class Publicity {

    private Long publicityId; //公告ID

    @TableId
    private String publicityName; //公告名称

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate publicityStartTime; //公告开始时间

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate publicityEndTime; //公告结束时间

    private String dealer; //成交人（品牌）

    private String publicityText; //公示内容

    private String projectNumber; //项目编号

    private Integer status;

    private String publicityFileUrl; //公示文件
}
